const getAllBlogsApi=()=>{
    return $axios({
        url:'/blog/findAll',
        method:'get'
    })
}

const addBlogsApi=(params)=>{
    return $axios({
        url:'/blog/add',
        method:'post',
        data: {...params}
    })
}

const deleteBlogsApi=(id)=>{
    return $axios({
        url:`/blog/delete/${id}`,
        method:'delete'
    })
}

const updateBlogsApi=(params)=>{
    return $axios({
        url:'/blog/update',
        method:'put',
        data: {...params}
    })
}

const findPojoById=(id)=>{
    return $axios({
        url:`/blog/findPojoById/${id}`,
        method:'get'
    })
}